encoding/json/v2.structField.index (field)

24 uses

	encoding/json/v2 (current package)
		arshal_default.go#L1148: 			if len(f.index) > 0 {
		arshal_default.go#L1149: 				v = v.fieldByIndex(f.index, false)
		arshal_default.go#L1391: 				if len(f.index) > 0 {
		arshal_default.go#L1392: 					v = v.fieldByIndex(f.index, true)
		arshal_embedded.go#L42: 	if len(f.index) > 0 {
		arshal_embedded.go#L43: 		v = v.fieldByIndex(f.index, false)
		arshal_embedded.go#L171: 	if len(f.index) > 0 {
		arshal_embedded.go#L172: 		v = v.fieldByIndex(f.index, true)
		fields.go#L47: 		f.index0 = f.index[0]
		fields.go#L48: 		f.index = f.index[1:]
		fields.go#L49: 		if len(f.index) == 0 {
		fields.go#L50: 			f.index = nil // avoid pinning the backing slice
		fields.go#L70: 	index   []int // 1st index and remainder according to [reflect.Type.FieldByIndex]
		fields.go#L123: 				index:        append(append(make([]int, 0, len(qe.index)+1), qe.index...), i),
		fields.go#L160: 						queue = append(queue, queueEntry{tf, f.index, !seen[tf]})
		fields.go#L296: 			cmp.Compare(len(x.index), len(y.index)),
		fields.go#L304: 		if n == 1 || len(allFields[0].index) != len(allFields[1].index) || allFields[0].hasName != allFields[1].hasName {
		fields.go#L323: 		return slices.Compare(x.index, y.index)
		fields.go#L350: 	if n := len(embeddedFallbacks); n == 1 || (n > 1 && len(embeddedFallbacks[0].index) != len(embeddedFallbacks[1].index)) {